CSS font |
您所在的位置:网站首页 › font weight › CSS font |
CSS font-weight 属性
实例
三段文字设置不同的字体粗细: p.normal {font-weight:normal;} p.thick {font-weight:bold;} p.thicker {font-weight:900;} 尝试一下 » 属性定义及使用说明font-weight 属性设置文本的粗细 默认值: normal 继承: yes 版本: CSS1 JavaScript 语法: object.style.fontWeight="900" 浏览器支持表格中的数字表示支持该属性的第一个浏览器版本号。 属性 font-weight 2.0 4.0 1.0 1.3 3.5 属性值 值 描述 normal 默认值。定义标准的字符。 bold 定义粗体字符。 bolder 定义更粗的字符。 lighter 定义更细的字符。 100 200 300 400 500 600 700 800 900 定义由细到粗的字符。400 等同于 normal,而 700 等同于 bold。 inherit 规定应该从父元素继承字体的粗细。 相关文章CSS 教程: CSS Font CSS 参考手册: font 属性 返回顶部 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |